package fun.linze.product.service.impl;

import fun.linze.product.bean.Product;
import fun.linze.product.service.ProductService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Slf4j

@Service
public class ProductServiceImpl implements ProductService {



    @Override
    public Product getProductById(Long productId) {
        Product product = new Product();
        product.setId(productId);
        product.setPrice(new BigDecimal("100"));
        product.setProductName("MacMiniM4"+productId);
        product.setNum(2);

        return product;
    }


}
